﻿<%@Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" MasterPageFile="Site.Master" 
Inherits="Presentation.Default" Title="Trang chủ"%>

<%@ Register namespace="SiteUtils" assembly="CollectionPager" tagPrefix="cc1" %>

<asp:Content ID="content" ContentPlaceHolderID="main" runat="server">   
    <!--Temp data-->
   <div class="entry-short-item">
      <asp:DataList ID="ViewAllEntry" runat="server">
        <ItemTemplate>
            <div class="entry-metadata">
                        <a href="http://www.google.com">
                            <img width="150" height="130" alt="post image" src='<%#Eval("ImageLink") %>' />
                        </a>
                        <ul class="post-data">
                            <li>
                                <span class="author"><%#Eval("Fullname") %></span>
                            </li>
                            <li>
                                <span class="date"><%#Eval("DatePost")%></span>
                            </li>
                            <li>
                                <span class="in-category">
                                    <a rel="category" href="./Resources/images/example.jpg" title='<%#Eval("CateName") %>'><%#Eval("CateName")%></a>
                                </span>
                            </li>
                            <li>
                                <span>
                                    <a rel="views" href="./Resources/images/view_icon.png" title='<%#Eval("Views") %> views'><%#Eval("Views") %> Views</a>
                                </span>
                            </li>
                            <li>
                                <span class="comments">
                                    <a href="http://www.google.com"><%#Eval("CommentCount")%> comments</a>
                                </span>
                            </li>
                        </ul>
                    </div>
                    <h1>
                        <a title='<%#Eval("Title") %>' href="Post/ReadPost.aspx?id=<%#Eval("PostId") %>"><%#Eval("Title") %></a>
                    </h1>
                    <p>
                        <span>
                            <%#Eval("ShortDescription") %>
                        </span>
                    </p>
                    <p>
                        <a class="read-more float-right" href="http://www.google.com.vn">Read more</a>
                    </p>
                    <br />
                </div>
        </ItemTemplate>
      </asp:DataList>
     </div>              
    <div class="article">        
              
    </div> 
    <div class="pagenavi" style="-moz-border-radius : 5px">
        <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="[ « Trước ]" FirstText="Đầu"
            LabelText="Trang : " LastText="Cuối" NextText="[ Tiếp » ]" ResultsLocation="None"
            BackNextLocation="Right" LabelStyle=""></cc1:CollectionPager>
    </div>
</asp:Content>
